/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pokergame;

/**
 *
 * @author Justin
 */
public class Board
{

    public Card cards[];

    Board(Deck d)
    {
        cards = new Card[5];
        for (int i = 0; i < 5; ++i)
        {
            cards[i] = d.Draw();
        }
    }

    /**
     * for other objects, like the gui, to get the cards in the hand. !
     * unnecessary since board cards are public
     *
     * @return an array of the cards held inside this object.
     */
    public Card[] getCards()
    {
        return cards;
    }

    public @Override
    String toString()
    {
        String s = "";
        for (int i = 0; i < 5; ++i)
        {
            s += cards[i] + ", ";
        }
        return s;
    }
}
